package io.renren.modules.sp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.CrudService;
import io.renren.modules.sp.dto.SpMatchItemTeamUserDTO;
import io.renren.modules.sp.entity.SpMatchItemTeamUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 参赛成员
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-04-21
 */
public interface SpMatchItemTeamUserService extends CrudService<SpMatchItemTeamUserEntity, SpMatchItemTeamUserDTO> {


    String queryTicketByUserId(Long matchId, Long userId);

    List<SpMatchItemTeamUserEntity> queryTicketBy(QueryWrapper<SpMatchItemTeamUserEntity> certificate);

    void updCertificate(SpMatchItemTeamUserEntity entity);

    List<Map<String, String>>  queryReport(String myMatchId,String mygroupId,String myprovince,String mymatchItemId
            ,String type);
    /**
     *统计参赛人数报表
     */
    List<Map<String, String>> querySignReport(String matchName ,Long matchLevel,String startSignDate ,String endSignDate,Long province,Long city );
    /**
     * 导出报名信息
     * */
    List<Map<String,String>> queryTicketByMatch(Long matchId, List<Long> itemList);

    List<SpMatchItemTeamUserEntity> queryList(QueryWrapper<SpMatchItemTeamUserEntity> wrapper);
}
